package pdn.sci.cs.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pdn.sci.cs.dao.SystemUserDao;
import pdn.sci.cs.entity.SystemUser;

@Service
public class SystemUserService {

	@Autowired private SystemUserDao systemUserDao;
	
	public SystemUser findById(String id) {
		return systemUserDao.findById(id);
	}
	
	public SystemUser signIn(String username, String password) {
		return systemUserDao.findByUsernameAndPassword(username, password);
	}
	
}
